public class Main
{

    private static final long VISITOR_AVG_ARRIVAL_TIME = 9000L;
    private static final long VISITOR_MIN_ARRIVAL_TIME = 1000L;

    private static void handleSleep(long millis)
    {
        try {
            Thread.currentThread().sleep(millis);
        } catch (InterruptedException e) {
            e.printStackTrace();
            System.exit(1);
        }
    }

    public static void main(String[] args)
    {
        Museum sorolla = new Museum();
        while(true)
        {
            handleSleep(((long) Math.random()) * VISITOR_AVG_ARRIVAL_TIME + VISITOR_MIN_ARRIVAL_TIME);
            (new Visitor(sorolla)).start();
        }
    }
}
